]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: Fix invocation call
authorAlessandro Bono <alessandro.bono369@gmail.com>
Fri, 20 Feb 2026 21:48:08 +0000 (22:48 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Mar 2026 17:37:03 +0000 (18:37 +0100)
The function expects a domain, which was missing. Add it.

Fixes: 8f03eec3a ("endSessionDialog: Use registered D-Bus error")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4084>
(cherry picked from commit 21dc872b5db6f8be91f123880ff20d2261c912c5)

js/ui/endSessionDialog.js

index 2bba883ee75770e9997cfd26a0bc775acb38575f..7be3070235c280b51539cb16e7c3bf55754d0419 100644 (file)
@@ -774,7 +774,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         this._updateButtons();
 
         if (!this.open()) {
-            invocation.return_error_literal(
+            invocation.return_error_literal(ModalDialogErrors,
                 ModalDialogError.GRAB_FAILED,
                 'Cannot grab pointer and keyboard');
             return;